﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Bussiness.Mangement.Project;
using Entity.Project;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace NetCoreAPI.Controllers.Portal
{
    [ApiController]
    public class TestController : PortalApiController
    {
        //[AllowAnonymous]
        //[HttpGet]
        //public ActionResult Get(int playNum)
        //{
        //    var a = PlayingCardBussiness.Init.AutoCrateDZPKGame(playNum);
        //    List<Wands> wands = new List<Wands>();
        //    for (int i = 0; i < a.PlayersCards.Count; i++)
        //    {
        //        wands.Add(PlayingCardBussiness.Init.GetOptimalWands(a.CommunityCards, a.PlayersCards[i]));
        //    }
        //    return new JsonResult(HttpResult.Success(new { GamePlayingCard = a, wands }));
        //}
    }
}
